import math
money = eval(input())-3500
if money <=1500:
	tax=money*0.03
	realmoney=money-tax+3500
if 1500<money<=4500:
	tax=money*0.10-105
	realmoney=money-tax+3500
if 4500<money<=9000:
	tax=money*0.20-555
	realmoney=money-tax+3500
if 9000<money<=35000:
	tax=money*0.25-1005
	realmoney=money-tax+3500
if 35000<money<=55000:
	tax=money*0.30-2755
	realmoney=money-tax+3500
if 55000<money<=80000:
	tax=money*0.35-5505
	realmoney=money-tax+3500
if money>80000:
	tax=money*0.45-13505
	realmoney=money-tax+3500
print('应缴税款{:.2f}元，实发工资{:.2f}元。'.format(tax,realmoney))